// let webpack = require('./jqbPack/lib/webpack.js')
let webpack = require('webpack')
let options = require('./webpack.config.js')

let complier = webpack(options)

complier.run(function (err, status) {
  console.log(err)
  console.log(
    status.toJson({
      entries: true,
      chunks: false,
      modules: false,
      assets: false
    })
  )
})

/**
 * beforeRun
 * run
 * thisCompilation
 * beforeCompile
 * compile
 * make
 * afterCompile
 */
